unsigned char modsum(unsigned char * data, int size);